#include "static.h"
#include "opt.h"
#include <cassert>



using namespace Opt_NS;
using std::string;
Opt_NS::Opt_C* Static_C::m_pOpt=NULL;
//--------------------------------------------------------------------------------------------------------------
void Static_C::setOpt(Opt_NS::Opt_C* p_pOpt)
{
    m_pOpt = p_pOpt;
}
//--------------------------------------------------------------------------------------------------------------
Opt_C* Static_C::getOpt()
{
    assert(m_pOpt!=NULL);
    return m_pOpt;
}
//--------------------------------------------------------------------------------------------------------------
const Opt_C* Static_C::getOptConst()
{
    assert(m_pOpt!=NULL);
    return (reinterpret_cast<const Opt_C*>(m_pOpt));
}
//--------------------------------------------------------------------------------------------------------------
OptOption_S Static_C::getOption(string p_sOpt)
{
    return getOptConst()->getOption(p_sOpt);
}
//--------------------------------------------------------------------------------------------------------------
